/*
 * Author: xiguan
 * Mail: xiguan.teng@qq.com
 * -----
 * Last Modified: 2022-05-26 22:10:38
 * Modified By: xiguan
 * -----
 * Copyright (c) 2022 XiGuan Inc.
 * 
 * No Bug No error No warning.
 */



#include <bits/stdc++.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>


using namespace std;


int main(int argc, char *argv[]){

    int fd;

    if(argc < 2){
        printf("Usage: %s <file name>\n", argv[0]);
        exit(0);
    }

    if((fd == open(argv[1], O_CREAT | O_EXCL, S_IRUSR | S_IWUSR)) == -1){
        perror("open: ");
        exit(1);
    } else{
        cout << "file success create " << endl;
    }

    return 0;
}
